<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">列名(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="required" class="form-control" name="row[column_name]" type="text" value="{$row['column_name']}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">列名(中文):</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="required" class="form-control" name="row[column_name_cn]" type="text" value="{$row['column_name_cn']}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">类型:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[column_type]', ['text'=>'文本框', 'select'=>'下拉框','date'=>'日期框','textarea'=>'文本域'],$row['column_type'], ['class' => 'form-control selectpicker'])}
        </div>
    </div>
    
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-6 col-sm-2">必填:</label>
        <div class="col-xs-6 col-sm-3">
        	{:build_select('row[is_required]', [''=>'否','required;'=>'是'], $row['is_required'], ['class' => 'form-control selectpicker'])}
        </div>
        <label for="c-username" class="control-label col-xs-12 col-sm-2">验证规则:</label>
        <div class="col-xs-6 col-sm-3">
        	{:build_select('row[column_required]', [
        	''=>'无', 
        	'digits'=>'数字', 
        	'letters'=>'字母',
        	'chinese'=>'中文字符',
        	'email'=>'邮箱',
        	'url'=>'网址',
        	'qq'=>'QQ号',
        	'IDcard'=>'身份证号',
        	'mobile'=>'手机号',
        	'tel'=>'电话号码',
        	'zipcode'=>'邮政编码',
        	'username'=>'账户',
        	'password'=>'密码',
        	], $row['column_required'], ['class' => 'form-control selectpicker'])}
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">默认值:</label>
        <div class="col-xs-12 col-sm-8">
            <input  class="form-control" name="row[column_default]" type="text" value="{$row['column_default']}" disabled>
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">排序:</label>
        <div class="col-xs-12 col-sm-8">
            <input  class="form-control" name="row[sort]" type="text" placeholder='数字越小越靠前' value="{$row['sort']}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">选项:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea  class="form-control" name="row[column_options]" placeholder='类型radio、checkbox、select，此处必填。多个英文逗号分隔'>{$row['column_options']}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">说明语:</label>
        <div class="col-xs-12 col-sm-8">
        	<input  class="form-control" name="row[column_placeholder]" type="text" placeholder='字段说明' value="{$row['column_placeholder']}">
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-10">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')],$row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
